package compare_time;

import junit.framework.Assert;
import junit.framework.TestCase;

public class TimeComparingTest extends TestCase {
	
	public void test1(){
		TimeComparing t = new TimeComparing(13, 20, 14, 40);
		String res = t.getFirstTime();
		Assert.assertEquals("Time 1 comes first", res);
	}
	
	public void test2(){
		TimeComparing t = new TimeComparing(13, 20, 13, 40);
		String res = t.getFirstTime();
		Assert.assertEquals("Time 1 comes first", res);
	}

	public void test3(){
		TimeComparing t = new TimeComparing(13, 20, 13, 20);
		String res = t.getFirstTime();
		Assert.assertEquals("Times are the same", res);
	}
	
	public void test4(){
		TimeComparing t = new TimeComparing(13, 20, 13, 10);
		String res = t.getFirstTime();
		Assert.assertEquals("Time 2 comes first", res);
	}
	
	public void test5(){
		TimeComparing t = new TimeComparing(13, 20, 12, 40);
		String res = t.getFirstTime();
		Assert.assertEquals("Time 2 comes first", res);
	}
}
